solve — Linear Equation Solution


\begin{rail}
Solve : 'solve' '(' Matrix ',' Matrix ')' ;
\end{rail}
solve is a function to find the solution to sets of linear equations. If the linear equation is of the form:

Ax = B

then A is the first argument to solve, and is the square, non-singular, co-efficients matrix. Each column in the second argument is used in turn as the constant part, B, and the each column in the resulting matrix corresponds to using the same column of B as the right hand side. The idea behind this is that you may have a several sets of linear equations using the same co-efficients with each variable, but equated to different constants. Since most of the work is associated with the variable co-efficients, it adds little overhead to solve for several sets of constants, at the same time. Not withstanding this, most of the time both the second argument and the result will be column vectors, representing a set of simultaneous solutions.

Subsections